package net.asciiworks.filesyncr.view {
    import net.asciiworks.filesyncr.ApplicationFacade;
    
    import org.puremvc.as3.interfaces.IMediator;
    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.mediator.Mediator;

    public class ApplicationMediator extends Mediator implements IMediator {
        public static const NAME:String = "ApplicationMediator";

        public function ApplicationMediator(viewComponent:FileSync) {
            super(NAME, viewComponent);
			facade.registerMediator(new ContentNavigatorMediator(app.navigator));
			facade.registerMediator(new MenuMediator(app.menuList));
        }

        private function get app():FileSync {
            return viewComponent as FileSync;
        }
    }
}